package com.example.design.behavior.state.status.enums;

/**
 * \* @author: bear
 * \* Date: 2021-01-26-10:40
 * \* describe:
 */
public enum StateEnum implements State{
	start("start"){
		@Override
		public StateEnum start() {
			return super.start();
		}
	},
	stop("stop"){
		@Override
		public StateEnum stop() {
			return super.stop();
		}
	},
	;
	private String stateName;

	StateEnum(String stateName) {
		this.stateName = stateName;
	}

	@Override
	public StateEnum start() {
		System.out.println("当前状态为start，不可以stop");
		return null;
	}

	@Override
	public StateEnum stop() {
		System.out.println("当前状态为stop，不可以start");
		return null;
	}
}
